package org.cs2340.jellybeanwms.presenters;

import org.cs2340.jellybeanwms.model.IModel;
import org.cs2340.jellybeanwms.views.IPersonListingView;


/**
 * Handle any logic related to the list of people
 * 
 * @author Robert
 *
 */
public class PersonListingPresenter {
	/** the model to pull data from */
	private final  IModel myModel;
	/** the view to display to */
	private final IPersonListingView myView;

	/**
	 * Make a new presenter
	 * @param m the model
	 * @param v the view
	 */
	public PersonListingPresenter(IModel m, IPersonListingView v) {
		myModel = m;
		myView = v;
		myView.setPeople(myModel.getPeople());
	}

}
